package com.jindi.jacococli.biz.business.model;

import lombok.Getter;
import lombok.Setter;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;

@Getter
@Setter
public class ReportServiceProgress {

    private String uuid;

    private AtomicReference<String> description = new AtomicReference<>();

    private volatile long total;

    private AtomicInteger over = new AtomicInteger(0);

    public void setDescription(String description) {
        this.description.set(description);
    }

    public void addOver() {
        this.over.incrementAndGet();
    }

}
